/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package shmallarchitect.java;

import javafx.scene.paint.Color;


/**
 *
 * @author jaccus
 */
/* Klasa Locuma
*   Ta klasa odpowiada za lokal, sa tu wszystkie rzeczy ktore dotycza lokalu.
*/
public class Locuma {

    public Integer[] local_place; //sequence pol jakie zajmuje lokal
    public Integer locumid;
    public Color locumcolor;
    public String name;
    public String textual_desc;
    public String www;
    public String phone;
    public Integer owner;

    public Integer[] resource_list;

    public Locuma(Integer locumid) {
        this.locumid = locumid;
    }

    

    public Locuma(Integer locumid, Color locumcolor, String name, Integer owner) {
        this.locumid = locumid;
        this.locumcolor = locumcolor;
        this.name = name;
        this.owner = owner;
    }

    public Locuma(Integer locumid, Color locumcolor, String name, Integer owner, Integer[] resources) {
        this.locumid = locumid;
        this.locumcolor = locumcolor;
        this.name = name;
        this.owner = owner;
        this.resource_list = resources;
    }

    public Locuma(Integer[] local_place, Integer locumid, Color locumcolor, String name, String textual_desc, String www, String phone, Integer owner) {
        this.local_place = local_place;
        this.locumid = locumid;
        this.locumcolor = locumcolor;
        this.name = name;
        this.textual_desc = textual_desc;
        this.www = www;
        this.phone = phone;
        this.owner = owner;
    }

    public Locuma(Integer[] local_place, Integer locumid, Color locumcolor, String name, String textual_desc, String www, String phone, Integer owner, Integer[] res) {
        this.local_place = local_place;
        this.locumid = locumid;
        this.locumcolor = locumcolor;
        this.name = name;
        this.textual_desc = textual_desc;
        this.www = www;
        this.phone = phone;
        this.owner = owner;
        this.resource_list = res;
    }



    public void clear() {
        local_place = new Integer[1000];
        locumid = -1;
        locumcolor = Color.web("#000000");
        name="";
        textual_desc="";
        www="";
        phone="";
        owner=0;
        resource_list = new Integer[3];
    }

    public Integer[] getLocal_place() {
        return local_place;
    }

    public void setLocal_place(Integer[] local_place) {
        this.local_place = local_place;
    }

    public Color getLocumcolor() {
        return locumcolor;
    }

    public void setLocumcolor(Color locumcolor) {
        this.locumcolor = locumcolor;
    }

    public Integer getLocumid() {
        return locumid;
    }

    public void setLocumid(Integer locumid) {
        this.locumid = locumid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getOwner() {
        return owner;
    }

    public void setOwner(Integer owner) {
        this.owner = owner;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTextual_desc() {
        return textual_desc;
    }

    public void setTextual_desc(String textual_desc) {
        this.textual_desc = textual_desc;
    }

    public String getWww() {
        return www;
    }

    public void setWww(String www) {
        this.www = www;
    }

    public Integer[] getResource() {
        return resource_list;
    }

    public void setResource(Integer[] reslist) {
        this.resource_list = reslist;
    }

    public Integer getSingleResource(Integer k) {
        return resource_list[k];
    }

}
